#!/bin/bash
DIR=$PWD
export PATH="$DIR/depot_tools:$PATH"

export TOOL_HOME=$DIR/flutter_env/command-line-tools-5.0.3.600
export HOS_SDK_HOME=$DIR/new-os-sdk
export DEVECO_SDK_HOME=$HOS_SDK_HOME
export NODE_HOME=$DIR/flutter_env/node-v16.14.2-linux-x64
export PATH=$TOOL_HOME/ohpm/bin:$TOOL_HOME/hvigor/bin:$NODE_HOME/bin:$PATH

echo "--> Starting sdk_setup"
$DIR/pre_script/sdk_setup.sh 12
echo "--> Starting build flutter_engine"
python3 src/flutter/attachment/scripts/ohos.py -n config compile -t debug
